<ion-header class="opacity-header">
  <ion-toolbar class="opacity-toolbar">
    <ion-buttons slot="start">
      <ion-button color="light" (click)="goBack()">
        <ion-icon name="ios-arrow-back"></ion-icon>
      </ion-button>
    </ion-buttons>
    <ion-title color="light">我的头像</ion-title>
    <ion-buttons slot="end">
      <ion-button (click)="uploadImage()" style="font-size: 14px;" [hidden]="!lastFilePath || lastFilePath === avatar">
        使用
      </ion-button>
      <ion-button (click)="presentActionSheet()" style="font-size: 18px;">
        <ion-icon name="ios-more"></ion-icon>
      </ion-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>

<ion-content padding>
  <div class="img-box">
    <ion-img [src]="lastFilePath"></ion-img>
  </div>
</ion-content>
